package database;

import java.util.ArrayList;
import java.util.List;

public class Division extends ArrayList<Staff> {

	private static final long serialVersionUID = -8868093626401841459L;
	private String name;

	public Division(String name) {
		this.name = name;
	}

	public boolean contains(Staff i2) {
		for (Staff i1 : this) {
			if (i1.getPatients().contains(i2))
				return true;
		}
		return false;
	}

	public String toString() {
		return name;
	}

}
